package com.zhengqing.design.create.abstract_factory._01.factory;

import com.zhengqing.design.create.abstract_factory._01.product.conn.IConn;
import com.zhengqing.design.create.abstract_factory._01.product.conn.MysqlConn;
import com.zhengqing.design.create.abstract_factory._01.product.user.IUser;
import com.zhengqing.design.create.abstract_factory._01.product.user.MysqlUser;

/**
 * <p> 具体工厂类 </p>
 *
 * @author zhengqingya
 * @description
 * @date 2022/12/21 16:19
 */
public class MysqlFactory implements IFactory {

    @Override
    public IConn getConnection() {
        return new MysqlConn();
    }

    @Override
    public IUser insertUser() {
        return new MysqlUser();
    }

}

